package com.feidee.myrule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author:CHQ
 * @Date:2020/4/14 14:27
 * @Description
 */
@Configuration
public class MyselfRule {

    @Bean
    public IRule rule() {
        return new RandomRule();
    }
}
